package com.example.hfSystem.entity.pojo;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * @author zx
 * @version 1.0
 * @package_name: com.example.hfSystem.entity.pojo
 * @date 2024/4/10 10:10
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("address_book")
@ApiModel(value = "AddressBookEntity对象", description = "")
public class AddressBook {
    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("用户id")
    @TableField("yonghu_id")
    private Long yonghuId;

    @ApiModelProperty("收货人")
    @TableField("consignee")
    private String consignee;

    @ApiModelProperty("详细地址")
    @TableField("detail")
    private String detail;

    @ApiModelProperty("0 默认地址 1 非默认")
    @TableField("is_defalult")
    private Integer isDefalult;

    @ApiModelProperty("0 未删除 1 删除")
    @TableField("is_delete")
    private Integer isDelete;
}
